package com.qf.shop.system.modules.promote.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 首页推荐
 *
 * @author toString
 * @email toString@qq.com
 * @date 2022-05-13 10:55:20
 */
@Data
@TableName("wx_promotion")
public class PromotionEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(type = IdType.INPUT)
    private Long id;
    /**
     * 主体
     */
    private String topic;

    private Integer orderNum;
    /**
     * 图片地址
     */
    private String pngUrl;
    /**
     * 访问地址
     */
    private String forwardUrl;
    /**
     * 展示时间
     * 默认是UTC时区，改为GTM+8
     */
//    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") jack
    @JSONField(format = "yyyy-MM-dd")
    private Date showDate;
    /**
     * 状态
     */
    private Integer status;

}
